package com.operate.api.app.message.service.impl;

import cn.dev33.satoken.stp.StpUtil;
import com.operate.api.app.info.dao.CompanyDao;
import com.operate.api.app.info.domain.vo.AppCompanySearchVO;
import com.operate.api.app.info.domain.vo.AppCompanyVO;
import com.operate.api.app.message.dao.AppMessageDao;
import com.operate.api.app.message.domain.vo.AppMessageSearchVO;
import com.operate.api.app.message.domain.vo.AppMessageVO;
import com.operate.api.app.message.service.IAppMessageService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;


@Service
@Transactional
@Slf4j
public class AppMessageServiceImpl implements IAppMessageService {

    @Autowired
    private AppMessageDao dao;


    @Override
    public List<AppMessageVO> getList(AppMessageSearchVO searchVO) {
        searchVO.setUserId(StpUtil.getLoginId().toString());
        return dao.getList(searchVO);
    }
}